import request from '@/utils/request'

// 查询库存变动日志列表
export function listStockChangeLog(query) {
  return request({
    url: '/core/StockChangeLog/list',
    method: 'get',
    params: query
  })
}

// 查询库存变动日志详细
export function getStockChangeLog(id) {
  return request({
    url: '/core/StockChangeLog/' + id,
    method: 'get'
  })
}

// 新增库存变动日志
export function addStockChangeLog(data) {
  return request({
    url: '/core/StockChangeLog',
    method: 'post',
    data: data
  })
}

// 修改库存变动日志
export function updateStockChangeLog(data) {
  return request({
    url: '/core/StockChangeLog',
    method: 'put',
    data: data
  })
}

// 删除库存变动日志
export function delStockChangeLog(id) {
  return request({
    url: '/core/StockChangeLog/' + id,
    method: 'delete'
  })
}
